package com.project.webpage.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.webpage.dto.CzxlRfidDayDto;
import com.project.webpage.dto.SearchByRqParam;
import com.project.webpage.mapper.CzxlRfidDayMapper;
import com.project.webpage.service.CzxlRfidDayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CzxlRfidDayServiceImpl implements CzxlRfidDayService {

    @Resource
    private CzxlRfidDayMapper czxlRfidDayMapper;

    @Override
    @DS("secondary")
    public List<CzxlRfidDayDto> getListForPage(SearchByRqParam param) {
        return czxlRfidDayMapper.selectListByUid(param);
    }
}
